<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue set方法</title>
    <script charset="UTF-8" src="js/vue.js"></script>
</head>
<body>
<div id="app">
    <div v-for="(item,index) of userInfo">
        {{item}}
    </div>
</div>
<script>
    let vm = new Vue({
        el: '#app',
        data: {
            userInfo:[1,2,3,4]
        },
        methods: {}
    });
</script>
</body>
</html>